agents.anac.y2011.TheNegotiator
Class TheNegotiator

java.lang.Object
  extended by negotiator.Agent
      extended by agents.anac.y2011.TheNegotiator.TheNegotiator

public class TheNegotiator
extends Agent

The TheNegotiator class specifies a negotiation agent in the GENIUS domain.

Author:
Alex Dirkzwager, Mark Hendrikx, Julian de Ruiter

Field Summary
 
Fields inherited from class negotiator.Agent
fNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace
 
Constructor Summary
TheNegotiator()
           
 
Method Summary
 Action chooseAction()
          Choose an action to perform.
 java.lang.String getName()
           
static java.lang.String getVersion()
           
 void init()
          init is called when a next session starts with the same partner.
 void ReceiveMessage(Action partnerAction)
          Store the actions made by a partner.
 
Methods inherited from class negotiator.Agent
endSession, getAgentID, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getUniqueIdentifier, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleep
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TheNegotiator

public TheNegotiator()
Method Detail

init

public void init()
init is called when a next session starts with the same partner.

Overrides:
init in class Agent

getVersion

public static java.lang.String getVersion()

getName

public java.lang.String getName()
Overrides:
getName in class Agent
Returns:
name of the agent.

ReceiveMessage

public void ReceiveMessage(Action partnerAction)
Store the actions made by a partner.

Overrides:
ReceiveMessage in class Agent
Parameters:
action - by partner in current turn

chooseAction

public Action chooseAction()
Choose an action to perform.

Specified by:
chooseAction in class Agent
Returns:
(should return) the bid-action the agent wants to make.